package com.loong.shop.common.backend.param;

import com.loong.common.validator.group.CommonValidate;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Author: LiuQun
 * @Date: 2020/12/17 15:28
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class GoodsRecommendOrNotParam {

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空",groups = {CommonValidate.class})
    private Long id;

    /**
     * 推荐：0(false)表示默认，1(true)表示推荐商品
     */
    @NotNull(message = "是否推荐不能为空",groups = {CommonValidate.class})
    private Boolean recommend;
}
